using System;
using UnityEngine;

public class HoleCrown : MonoBehaviour
{
	[Serializable]
	public class EditorReferences
	{
		public float rotationSpeed;

		public Transform crownTransform;
	}

	[SerializeField]
	public EditorReferences references = new EditorReferences();

	private void Update()
	{
		references.crownTransform.Rotate(references.crownTransform.up * references.rotationSpeed * Time.deltaTime);
	}

	public void SetSize(float ratio)
	{
		references.crownTransform.localPosition = Vector3.Lerp(Vector3.zero, new Vector3(0f, 15f, 0f), ratio);
		references.crownTransform.localScale = Vector3.Lerp(new Vector3(0.35f, 0.35f, 0.35f), new Vector3(3.25f, 3.25f, 3.25f), ratio);
	}
}
